/**   
 *    
 * 项目名称：SmartKungFuService   
 * 类名称：MstOrderServiceImpl   
 * 类描述：   发布动态实现类层 
 * 修改备注：   
 * @version    
 *    
 */
package com.lst.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.lst.dao.DynamicMapper;
import com.lst.model.Dynamic;
import com.lst.service.DynamicService;


/**
 * @ClassName: DynamicServiceImpl
 * @Description: 动态发布实现类层
 * @date 2016年9月27日 下午7:40:36
 * 
 */
@Service("DynamicService")
public class DynamicServiceImpl implements DynamicService {
	
	@Autowired
	private DynamicMapper dao;

	@Override
	public int insert(Dynamic record) {
		return dao.insert(record);
	}

	@Override
	public Dynamic selectByPrimaryKey(Integer id) {
		return dao.selectByPrimaryKey(id);
	}

	@Override
	public int updateDynamic(Dynamic record) {
		 return dao.updateDynamic(record);
	} 

	@Override
	public List<Dynamic> queryByList(Map<String, Object> map, PageBounds pageBounds) {
		return dao.queryByList(map, pageBounds);
	}

	@Override
	public int updateByPrimaryKey2(Integer id) {
		
		return dao.updateByPrimaryKey2(id);
	}

	@Override
	public int countTotal(Integer id) {
		
		return dao.countTotal(id);
	}

	@Override
	public List<Dynamic> queryByList2(Map<String, Object> map, PageBounds pageBounds) {
		
		return dao.queryByList2(map, pageBounds);
	}


}
